package com.mew.lobby.message.request;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.*;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EnterLobbyRequestMessage extends ZebraBaseMessage<EnterLobbyRequestMessage> {

    private String encryptionStr; //加密字符串 大厅编号@TOKEN@StartTime
    private long startTime;


    @Override
    public void write(ByteBuf byteBuf) {

    }

    @Override
    public EnterLobbyRequestMessage read(ByteBuf b) {
        EnterLobbyRequestMessage requestMessage = new EnterLobbyRequestMessage();
        requestMessage.encryptionStr = readString(b);
        requestMessage.startTime = readLong(b);
        return requestMessage;
    }
}
